package test.test1;

public class Main {
    public static void main(String[] args) {
        Circle c1 = new Circle(1);
        Circle c2 = new Circle(2);
        Circle c3 = new Circle(3);

        Rectangle r1 = new Rectangle(1, 2);
        Rectangle r2 = new Rectangle(2, 3);
        Rectangle r3 = new Rectangle(3, 4);

        System.out.println("圆 c1 的面积: " + c1.calculateArea() + " 圆 c1 的周长: " + c1.calculatePerimeter());
        System.out.println("圆 c2 的面积: " + c2.calculateArea() + " 圆 c2 的周长: " + c2.calculatePerimeter());
        System.out.println("圆 c3 的面积: " + c3.calculateArea() + " 圆 c3 的周长: " + c3.calculatePerimeter());

        System.out.println("长方形 r1 的面积: " + r1.calculateArea() + " 长方形 r1 的周长: " + r1.calculatePerimeter());
        System.out.println("长方形 r2 的面积: " + r2.calculateArea() + " 长方形 r2 的周长: " + r2.calculatePerimeter());
        System.out.println("长方形 r3 的面积: " + r3.calculateArea() + " 长方形 r3 的周长: " + r3.calculatePerimeter());
    }

}
